<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?>

<h2><?php print $header?></h2>
<p><?php echo $this->lang->line( 'menu_type_intro' ); ?></p>

<?php 
$hidden = array( 'position' => $position );
print form_open( 'article/user/menu/form', '', $hidden );
?>
<table class="data_grid" cellspacing="0">
    <tbody>
    	<tr>
            <td>
            	<?php 
            		print form_hidden( 'type', 'article' );
	            	print $this->bep_assets->icon( 'add' );	
	            	print form_submit( 'submit', $this->lang->line( 'menu_add_article' ) ); 
            	?>
            </td>
        </tr>
    </tbody>
</table>
<?php 
print form_close( );
print form_open( 'article/user/menu/form', '', $hidden );
?>
<table class="data_grid" cellspacing="0">
    <tbody>
    	<tr>
            <td>
            	<?php 
            		print form_hidden( 'type', 'imprint' );
	            	print $this->bep_assets->icon( 'add' );	
	            	print form_submit( 'submit', $this->lang->line( 'menu_add_imprint' ) ); 
            	?>
            </td>
        </tr>
    </tbody>
</table>
<?php 
print form_close( );
foreach( $features as $key => $value ){
	if( $value['form'] ){
		print form_open( 'article/user/menu/form', '', $hidden );
		?>
		<table class="data_grid" cellspacing="0">
		    <tbody>
		    	<tr>
		            <td>
		            	<?php 
		            		print form_hidden( 'type', $value['controller'] );
			            	print $this->bep_assets->icon( 'add' );	
			            	print form_submit( 'submit', $this->lang->line( 'menu_add_'.$value['controller'] ) ); 
		            	?>
		            </td>
		        </tr>
		    </tbody>
		</table>
		<?php 
		print form_close( );
	} //if
}
?>